package net.qujoy.springboot.helloworld.controller;

import net.qujoy.springboot.helloworld.domain.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("hello")
public class HelloWorldController {

    @RequestMapping(value = "user")
    @ResponseBody
    public User user() {
        return new User("Tom", 18);
    }

}
